Namespace - LJCTextDataReaderLib
Returns
True if read successfully, otherwise false.
Syntax
Reads the next line of the text file.
(DE)
Remarks
This is a minimum required method.
Example
C# |
using LJCTextDataReaderLib;
TextDataReader textReader = new TextDataReader();
textReader.LJCSetFile("InputFileSpec.txt");
while(textReader.Read())
{
for int index = 0; index < textReader.FieldCount; index++)
{
object fieldValue = textReader[index];
string text = textReader.GetString(index);
}
foreach string fieldName in textReader.LJCGetFieldNames())
{
object fieldValue = textReader[fieldName];
string text = textReader.GetString(fieldName);
}
}
|
Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.